package model

import (
	"github.com/jinzhu/gorm"
)

type Token struct {
	gorm.Model
	Token    string `json:"token"`
	UserId   uint   `json:"user_id"`
	UserType int    `json:"user_type"`
	Status   int    `json:"status"`
}

const (
	TokenUserTypeUser = iota + 1
	TokenUserTypeAdmin
)

const (
	TokenStatusInValid = iota
	TokenStatusValid
)
